package com.example.hotelmanager.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.hotelmanager.entity.Room;
import com.example.hotelmanager.entity.vo.RoomMsg;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author :chenjie
 * @date :Created 2022/11/27 22:22
 */
@Service
public interface RoomService extends IService<Room> {
    List<Room> getNullRooms();

    void addRoom(Room room);

    void deleteRoom(String id);

    List<Room> getNullRoomsByRank(List<Room> rooms, long fromTime, long toTime, String rank);

    List<RoomMsg> getHasCheckedRoom();

    List<RoomMsg> getHasBookedRoom();

    RoomMsg getid(Room room);
}
